package com.sali.b_design_pattern.k_observer_pattern.lesson_01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: zhang hang
 * @date: 2023/3/26 13:47.
 * @version: 1.0
 */
@RestController
public class Test01 {

    @Autowired
    private OrderService orderService;

    @GetMapping("/observer/order")
    void contextLoads() {
        int i = orderService.makeOrder(1L, 1L, 10);
        System.out.println(i);
    }


}
